package com.easypreview.preview.persist.channel;

import java.util.List;

import com.easypreview.preview.util.page.Page;
import com.easypreview.preview.domain.channel.Channel;

/**
 * 
 * @author loudyn
 * 
 */
public interface ChannelRepository {

	Channel queryUniqueByPath(String path);
	
	Channel queryUniqueByName(String name);
	
	Page<Channel> queryPage(Page<Channel> page);

	Channel get(String id);
	
	void save(Channel channel);

	void update(Channel channel);

	void delete(String id);

	List<Channel> queryTop();

	Page<Channel> queryPageTop(Page<Channel> page);

	List<Channel> query(Object object);
	
	List<Channel> queryChildById(String id);

	Page<Channel> queryPageChildById(Page<Channel> page ,String id);
	
	List<Channel> queryChannels();

	Channel getFatherByFatherId(String fatherId);
	
	
}
